package com.distributed.tcp.manager;

import io.netty.channel.Channel;

public interface MessageHandler {
    /**
     * 处理接收到的消息
     */
    void handleMessage(Channel channel,int port ,String message,
                      DeviceConnectionManager connectionManager);
    
    /**
     * 发送消息
     */
    boolean sendMessage(Channel channel, String message);
}
